<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>我的奖品 - 摇一摇</title>

<link href="__PUBLIC__/themes/wechat/shark/style.css" rel="stylesheet">
<link href="__PUBLIC__/plugins/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/plugins/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/plugins/animate/animate.min.css" rel="stylesheet">
<link href="__PUBLIC__/themes/global/global.css" rel="stylesheet">
<script src="__PUBLIC__/plugins/jquery/2.1.3/jquery.min.js"></script>
<script src="__PUBLIC__/plugins/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/js/global.js"></script>

<script>
$(function(){
  
});
</script>
</head>
<body style="background:#eeeeee;">

<div class="container" style="padding:16px !important; ">

  <?php foreach( $rows as $row ) : ?>
  <div class="row" style="margin-bottom:10px; background:#FFFFFF; padding:10px 0">
    <div class="col-xs-3">
      <img class="img-responsive" src="<?= U( $row['icon'] ) ?>" alt="<?= $row['name'] ?>" >
    </div>
    <div class="col-xs-9">
      <h4 class="media-heading"><?= $row['name'] ?> <?= $row['amount'] > 0 ? $row['amount'] . '元' : ''  ?></h4>
      <p>中奖时间：<?= substr( $row['create_time'] , 5 , 11 )?></p>
      <?php if ( !empty( $row['sn_url'] ) ) : ?>
      <a target="_blank" href="<?= $row['sn_url'] ?>">赶快领取 > </a>
      <?php endif ; ?>
    </div>
  </div>
  <?php endforeach ; ?>
</div>
</body>
</html>
